<?php if(!empty($news_infos)):?>
<div class="wrapper">
    <?php    
        foreach($news_infos as $news){
            echo '<div class="news_item">';
                echo '<h3><a href="'.url('news/detail/'.$news->id.'/'.$this->uri->segment(2)).'">'.$news->title.'</a></h3>';
                echo '<div class="news_date">'.date('r',strtotime($news->news_date)).'</div>';
                echo '<p>'.getWordOfString($news->description, 30).'.....<a href="'.url('news/detail/'.$news->id.'/'.$this->uri->segment(2)).'">'.__('home_readmore').'</a></p>';
            echo '</div>';
        }
    ?>
</div>
<?php endif;?>
<div style="clear: both;">&nbsp;</div>
<div id="pagination"><?php echo isset($pagination) ? $pagination : NULL; ?></div>
<div style="clear: both;">&nbsp;</div>